package entity;

import java.io.Serializable;

public class LogRec implements Serializable{
	private String logName;//用户登录名
	private String logIP;//用户登录IP
	private long logTime;//用户登入/登出时刻(毫秒)，原日志中数据单位是秒
	private int pid;//用户登录的进程ID
	private short logType;//登录记录类型：7=登入，8=登出
	
	public String getLogIP() {
		return logIP;
	}
	public void setLogIP(String logIP) {
		this.logIP = logIP;
	}
	public String getLogName() {
		return logName;
	}
	public void setLogName(String logName) {
		this.logName = logName;
	}
	public long getLogTime() {
		return logTime;
	}
	public void setLogTime(long logTime) {
		this.logTime = logTime*1000;
	}
	public short getLogType() {
		return logType;
	}
	public void setLogType(short logType) {
		this.logType = logType;
	}
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	
	@Override
	public String toString() {
		return "logname:"+logName+",logip:"+logIP+",logtime:"+logTime+",logtype:"+logType+",logpid:"+pid;
	}
	
}
